home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / mac / DirectX SDK / DXSDK / samples / Multimedia / DirectSound / AmplitudeModulation / readme.txt < prev    next >
Text File  |  2001-10-10  |  2KB  |  46 lines

  1. //-----------------------------------------------------------------------------
  2. // 
  3. // Sample Name: AmplitudeModulation Sample
  4. // 
  5. // Copyright (c) 1999-2001 Microsoft Corporation. All rights reserved.
  6. // 
  7. //-----------------------------------------------------------------------------
  8.  
  9.  
  10. Description
  11. ===========
  12.   The AmplitudeModulation sample shows how to apply an effect to a 
  13.   DirectSound secondary buffer and modify the parameters of the effect.  
  14.   
  15. Path
  16. ====
  17.   Source: DXSDK\Samples\Multimedia\DSound\AmplitudeModulation
  18.  
  19.   Executable: DXSDK\Samples\Multimedia\DSound\Bin
  20.  
  21. User's Guide
  22. ============
  23.   Play the default sound or load another wave file by clicking Sound File. 
  24.   Change the parameters of the effect by selecting one of the Wave Form 
  25.   options and moving the slider to change the modulation rate.
  26.   
  27. Programming Notes
  28. =================  
  29.   For a simpler example of how to setup a DirectSound buffer without a 
  30.   DirectSound effect, see the PlaySound sample. 
  31.   
  32.   * To set an effect on a buffer
  33.         1. Make sure the buffer is created with the DSBCAPS_CTRLFX flag.
  34.         2. Fill out a DSEFFECTDESC struct setting the guidDSFXClass 
  35.            to the GUID of the effect desired.
  36.         3. Call IDirectSoundBuffer8::SetFX passing in the DSEFFECTDESC struct.  
  37.         4. Call IDirectSoundBuffer8::GetObjectInPath to get a interface
  38.            pointer to the effect in the buffer, such as IDirectSoundFXGargle.
  39.  
  40.   * To control various parameters of the gargle effect:
  41.         1. Fill out a DSFXGargle struct with desired params
  42.         2. Call IDirectSoundFXGargle::SetAllParameters
  43.             
  44.    
  45.   
  46.